package org.gienah;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation defines those fields that must be injected from the Spring
 * context.
 * 
 * @author Santiago L. Valdarrama
 * @since E0.2
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Dependency {

	/**
	 * Represents the name of the bean that will be loaded from the Spring
	 * context. If not specified, the field name will be used.
	 */
	String bean() default "";

}
